package tothreedesignmodel.proxy;

/**
 * @Author lzhphantom
 * @Description
 * @Date 创建于 16:06 2020/7/16
 * @Modified
 */
public class ProxyPeople implements Buy {
    private People people;

    public ProxyPeople(People people) {
        this.people = people;
    }

    @Override
    public void buyCar() {
        System.out.println("4s help you get a car");
        people.buyCar();
    }

    public static void main(String[] args) {
        Buy buy = new ProxyPeople(new People());
        buy.buyCar();
    }
}
